package com.cmcc.waf.report.service;

import com.cmcc.waf.report.feign.OpenAPIFeign;
import com.cmcc.waf.report.feign.model.QmThreatHostTopResponse;
import com.cmcc.waf.report.feign.model.ResponseVO;
import com.cmcc.waf.report.feign.model.ThreatTypeVO;
import com.cmcc.waf.report.feign.model.WebSafeRequest;
import com.cmcc.waf.report.request.ThreatTypeRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author liang_jinxin
 * @date 2025/1/15 17:49
 */
@Service
public class ThreatTypeService {

    @Autowired
    private OpenAPIFeign feign;

    public ResponseVO<List<ThreatTypeVO>> threatType(ThreatTypeRequest request){
        return feign.getThreatTypes(request);
    }

    /**
     * 威胁主机TOP5
     * @param request
     * @return
     */
    public ResponseVO<List<QmThreatHostTopResponse>> threatHostTop(WebSafeRequest request){
        return feign.threatHostTop(request);
    }
}
